package com.example.aigc_education.integration.response;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.Data;
import lombok.Getter;

import java.io.IOException;
import java.io.Serializable;
import java.util.List;

@Data
public class CozeAsyncResponse implements Serializable {
    private Detail detail;
    private int code;
    private String msg;
    private List<WorkflowExecuteHistory> data;


    @Getter
    public static class Detail {
        private String logid;
    }

    @Getter
    public static class WorkflowExecuteHistory{
        @JsonProperty("update_time")
        private long updateTime;
        private String cost;
        private String output;
        @JsonProperty("bot_id")
        private String botId;
        private String token;
        @JsonProperty("execute_status")
        private String executeStatus;
        @JsonProperty("connector_uid")
        private String connectorUid;
        @JsonProperty("run_mode")
        private int runMode;
        @JsonProperty("connector_id")
        private String connectorId;
        private String logid;
        @JsonProperty("debug_url")
        private String debugUrl;
        @JsonProperty("error_code")
        private String errorCode;
        @JsonProperty("error_message")
        private String errorMessage;
        @JsonProperty("execute_id")
        private String executeId;
        @JsonProperty("create_time")
        private long createTime;
    }

}
